package com.gmail.blackdog1987.onedollar.entity;

import javax.persistence.*;
import java.sql.Timestamp;

/**
 * Created by dongguochao on 12/7/15.
 */
@Entity
@Table(name = "t_recruit_info", schema = "", catalog = "onedollar")
public class TRecruitInfoEntity {
    private int id;
    private String jobName;
    private String jobCity;
    private Integer jobNumber;
    private String jobRespons;
    private String jobRequires;
    private String jobDepart;
    private String startTime;
    private String endTime;
    private String contactMan;
    private String contactPhone;
    private String complainPhone;
    private String complainEmail;
    private String mapImg;
    private Timestamp addTime;
    private Timestamp updateTime;
    private String dealMap;

    @Id
    @Column(name = "id", nullable = false, insertable = true, updatable = true)
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "job_name", nullable = true, insertable = true, updatable = true, length = 50)
    public String getJobName() {
        return jobName;
    }

    public void setJobName(String jobName) {
        this.jobName = jobName;
    }

    @Basic
    @Column(name = "job_city", nullable = true, insertable = true, updatable = true, length = 20)
    public String getJobCity() {
        return jobCity;
    }

    public void setJobCity(String jobCity) {
        this.jobCity = jobCity;
    }

    @Basic
    @Column(name = "job_number", nullable = true, insertable = true, updatable = true)
    public Integer getJobNumber() {
        return jobNumber;
    }

    public void setJobNumber(Integer jobNumber) {
        this.jobNumber = jobNumber;
    }

    @Basic
    @Column(name = "job_respons", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getJobRespons() {
        return jobRespons;
    }

    public void setJobRespons(String jobRespons) {
        this.jobRespons = jobRespons;
    }

    @Basic
    @Column(name = "job_requires", nullable = true, insertable = true, updatable = true, length = 65535)
    public String getJobRequires() {
        return jobRequires;
    }

    public void setJobRequires(String jobRequires) {
        this.jobRequires = jobRequires;
    }

    @Basic
    @Column(name = "job_depart", nullable = true, insertable = true, updatable = true, length = 20)
    public String getJobDepart() {
        return jobDepart;
    }

    public void setJobDepart(String jobDepart) {
        this.jobDepart = jobDepart;
    }

    @Basic
    @Column(name = "start_time", nullable = true, insertable = true, updatable = true, length = 30)
    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    @Basic
    @Column(name = "end_time", nullable = true, insertable = true, updatable = true, length = 30)
    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Basic
    @Column(name = "contact_man", nullable = true, insertable = true, updatable = true, length = 50)
    public String getContactMan() {
        return contactMan;
    }

    public void setContactMan(String contactMan) {
        this.contactMan = contactMan;
    }

    @Basic
    @Column(name = "contact_phone", nullable = true, insertable = true, updatable = true, length = 20)
    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    @Basic
    @Column(name = "complain_phone", nullable = true, insertable = true, updatable = true, length = 20)
    public String getComplainPhone() {
        return complainPhone;
    }

    public void setComplainPhone(String complainPhone) {
        this.complainPhone = complainPhone;
    }

    @Basic
    @Column(name = "complain_email", nullable = true, insertable = true, updatable = true, length = 30)
    public String getComplainEmail() {
        return complainEmail;
    }

    public void setComplainEmail(String complainEmail) {
        this.complainEmail = complainEmail;
    }

    @Basic
    @Column(name = "map_img", nullable = true, insertable = true, updatable = true, length = 100)
    public String getMapImg() {
        return mapImg;
    }

    public void setMapImg(String mapImg) {
        this.mapImg = mapImg;
    }

    @Basic
    @Column(name = "add_time", nullable = true, insertable = true, updatable = true)
    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    @Basic
    @Column(name = "update_time", nullable = true, insertable = true, updatable = true)
    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }

    @Basic
    @Column(name = "deal_map", nullable = true, insertable = true, updatable = true, length = 100)
    public String getDealMap() {
        return dealMap;
    }

    public void setDealMap(String dealMap) {
        this.dealMap = dealMap;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        TRecruitInfoEntity that = (TRecruitInfoEntity) o;

        if (id != that.id) return false;
        if (jobName != null ? !jobName.equals(that.jobName) : that.jobName != null) return false;
        if (jobCity != null ? !jobCity.equals(that.jobCity) : that.jobCity != null) return false;
        if (jobNumber != null ? !jobNumber.equals(that.jobNumber) : that.jobNumber != null) return false;
        if (jobRespons != null ? !jobRespons.equals(that.jobRespons) : that.jobRespons != null) return false;
        if (jobRequires != null ? !jobRequires.equals(that.jobRequires) : that.jobRequires != null) return false;
        if (jobDepart != null ? !jobDepart.equals(that.jobDepart) : that.jobDepart != null) return false;
        if (startTime != null ? !startTime.equals(that.startTime) : that.startTime != null) return false;
        if (endTime != null ? !endTime.equals(that.endTime) : that.endTime != null) return false;
        if (contactMan != null ? !contactMan.equals(that.contactMan) : that.contactMan != null) return false;
        if (contactPhone != null ? !contactPhone.equals(that.contactPhone) : that.contactPhone != null) return false;
        if (complainPhone != null ? !complainPhone.equals(that.complainPhone) : that.complainPhone != null)
            return false;
        if (complainEmail != null ? !complainEmail.equals(that.complainEmail) : that.complainEmail != null)
            return false;
        if (mapImg != null ? !mapImg.equals(that.mapImg) : that.mapImg != null) return false;
        if (addTime != null ? !addTime.equals(that.addTime) : that.addTime != null) return false;
        if (updateTime != null ? !updateTime.equals(that.updateTime) : that.updateTime != null) return false;
        if (dealMap != null ? !dealMap.equals(that.dealMap) : that.dealMap != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (jobName != null ? jobName.hashCode() : 0);
        result = 31 * result + (jobCity != null ? jobCity.hashCode() : 0);
        result = 31 * result + (jobNumber != null ? jobNumber.hashCode() : 0);
        result = 31 * result + (jobRespons != null ? jobRespons.hashCode() : 0);
        result = 31 * result + (jobRequires != null ? jobRequires.hashCode() : 0);
        result = 31 * result + (jobDepart != null ? jobDepart.hashCode() : 0);
        result = 31 * result + (startTime != null ? startTime.hashCode() : 0);
        result = 31 * result + (endTime != null ? endTime.hashCode() : 0);
        result = 31 * result + (contactMan != null ? contactMan.hashCode() : 0);
        result = 31 * result + (contactPhone != null ? contactPhone.hashCode() : 0);
        result = 31 * result + (complainPhone != null ? complainPhone.hashCode() : 0);
        result = 31 * result + (complainEmail != null ? complainEmail.hashCode() : 0);
        result = 31 * result + (mapImg != null ? mapImg.hashCode() : 0);
        result = 31 * result + (addTime != null ? addTime.hashCode() : 0);
        result = 31 * result + (updateTime != null ? updateTime.hashCode() : 0);
        result = 31 * result + (dealMap != null ? dealMap.hashCode() : 0);
        return result;
    }
}
